home *** CD-ROM | disk | FTP | other *** search
- <!--- This example shows the use of IsDate --->
-
- <HTML>
-
- <HEAD>
- <TITLE>
- IsDate Example
- </TITLE>
- </HEAD>
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
-
- <H3>IsDate Example</H3>
-
- <CFIF IsDefined("form.theTestValue")>
-
- <CFIF IsDate(form.theTestValue)>
- <H3>The string <CFOUTPUT>#DE(form.theTestValue)#</CFOUTPUT> is a valid date</H3>
- <CFELSE>
- <H3>The string <CFOUTPUT>#DE(form.theTestValue)#</CFOUTPUT> is not a valid date</H3>
-
- </CFIF>
-
-
- </CFIF>
-
- <FORM ACTION="isdate.cfm" METHOD="POST">
- <P>Enter a string, and discover if
- it can be evaluated to a date value.
-
- <P><INPUT TYPE="Text" NAME="TheTestValue" VALUE="<CFOUTPUT>#Now()#</CFOUTPUT>">
-
- <INPUT TYPE="Submit" VALUE="Is it a Date?" NAME="">
-
-
- </FORM>
-
- </BODY>
-
- </HTML>
-